{template 'header'}
<!--当前位置-->
<div class="location layout960">
	当前位置: <a href="{SITE_URL}">首页</a>&nbsp; »&nbsp; <a href="{url('info/index')}">资讯</a>&nbsp;»&nbsp; {cat_pos($CAT, ' &raquo; ')}&nbsp; »&nbsp; 正文
</div>
<!--当前位置 end-->

<!--主体部分-->
<div class="layout960 fn-clear">
	<div class="layout-1of2 fn-left">
		<div class="content">
		<div class="article">
			<h1>{$title}</h1>
			<div class="article-info">
				<span>发布日期：{$adddate}</span>
				{if $copyfrom}<span>来源：{if $fromurl}<a href="{$fromurl}" target="_blank">{/if}{$copyfrom}{if $fromurl}</a>{/if}</span>{/if}
				{if $author}<span>作者：{$author}</span>{/if}
				<span>浏览次数：{$hits}</span>
			</div>


            <!--文章内容-->
            <div class="article-body">
                {if  $pages>1 && $page && !$showAll}
                <?php echo $contents['page-'.$page] ?>
                {else}
                {$contents['all']}
                {/if}
            </div>
            <!--页码-->
            {if $pages && !$showAll}
            <div class="article-pages fn-clear" >
                <ul >
                    {php $pagePrev = intval($page-1)}
                    {php $pageNext = intval($page+1)}
                    <a  {if !isset($titles['page-'.$pagePrev])}class="disabled"  href="javascript:void(0)"{else}href="{url('info/show','itemid='.$itemid.'&page='.$pagePrev)}"{/if}>上一页</a>
                    <?php for($i=1;$i<=$pages;$i++) { ?>
                    <a {if $i==$page}class="current"{/if} href="{url('info/show','itemid='.$itemid.'&page='.$i)}">{$i}</a>
                    <?php }?>
                    <a {if !isset($titles['page-'.$pageNext])} class="disabled"  href="javascript:void(0)" {else} href="{url('info/show','itemid='.$itemid.'&page='.$pageNext)}"{/if}>下一页</a>
                    <a href="{url('info/show','itemid='.$itemid.'&showAll')}">全文阅读</a>
                </ul>
            </div>
            {/if}
            {if count($titles)!=0 && !$showAll}
            <div class="article-subpage">
                <h3>文章导航:</h3>
                <ul class="text-ellipsis fn-clear">
                    {loop $titles $k $v}
                    {php $np = str_replace('page-', '', $k)}
                    <li {if $np%2 == 0}class="event"{/if}><a {if $k=='page-'.$page}class="current"{/if} href="{url('info/show','itemid='.$itemid.'&page='.$np)}" title="{$v}">{$v}</a></li>
                    {/loop}
                </ul>
            </div>
            {/if}
            {if $keytags}
            <div class="article-keytags">
                文章标签:
                {loop $keytags $tag}
                <a href="javascript:void(0);return false;">{$tag}</a>
                {/loop}
            </div>
            {/if}
			<div class="operate">
				[ <a id='favorite' style="cursor: pointer">加入收藏</a>]&nbsp;&nbsp;
				[ <a id='mail' style="cursor: pointer">告诉好友</a>]&nbsp;&nbsp;
				[<a href="javascript:void(0)" onclick="print()">打印本文</a> ]&nbsp;&nbsp;
				[<a href="javascript:window.close()">关闭窗口</a>]
			</div>
			<!--article-body end-->
			<div class="article-bot fn-clear">
				<div class="article-nav fn-left">
					<p>上一篇：<!--{Template::tag("moduleid=$moduleid&condition=status=3 and addtime<$addtime&pagesize=1&order=addtime desc&template=list-np", -1)}--></p>
					<p>下一篇：<!--{Template::tag("moduleid=$moduleid&condition=status=3 and addtime>$addtime&pagesize=1&order=addtime asc&template=list-np", -1)}--></p>
				</div>
				<div class="article-share fn-right">
					<!--分享-->
					{template 'share-baidu', 'fragment'}
					<!-- 分享 END -->
				</div>
			</div>
		</div>
			<!--  -->
			<!--article end-->
		<!--相关文章-->
		<div class="article-relative fn-clear">
			<div class="article-relnews fn-left">
				<h4>相关新闻</h4>
				{if $keytags}
				{php $tag_xiangguan=Template::tag("moduleid=$moduleid&length=44&condition=status=3 and itemid<>$itemid and keyword like '%".$keytags[0]."%'&pagesize=".$MOD[page_srelate]."&order=".$MOD[order]."&template=null", -2)}
				{else}
				{php $tag_xiangguan=Template::tag("moduleid=$moduleid&length=44&catid=$catid&condition=status=3 and itemid!=$itemid&pagesize=".$MOD[page_srelate]."&order=".$MOD[order]."&template=null", -2)}
				{/if}
				<ul class="ul-blue bluedot">
					{loop $tag_xiangguan $i $t}
					<li><a class="text-ellipsis" href="{url('info/show', 'itemid='.$t['itemid'])}">{$t[title]}</a><span>{timetodate($t[addtime], 3)}</span></li>
					{/loop}
				</ul>
			</div>
			<div class="article-relreccm fn-right">
				<h4>相关推荐</h4>
				{if $keytags}
				{php $tag_xiangguan=Template::tag("moduleid=$moduleid&length=44&condition=status=3 and level=1 and itemid<>$itemid and keyword like '%".$keytags[0]."%'&pagesize=".$MOD[page_srelate]."&order=".$MOD[order]."&template=null", -2)}
				{else}
				{php $tag_xiangguan=Template::tag("moduleid=$moduleid&length=44&catid=$catid&condition=status=3 and level=1 and itemid!=$itemid&pagesize=".$MOD[page_srelate]."&order=".$MOD[order]."&template=null", -2)}
				{/if}
				<ul class="ul-blue text-ellipsis">
					{loop $tag_xiangguan $i $t}
					<li><a class="text-ellipsis" href="{url('info/show', 'itemid='.$t['itemid'])}">{$t[title]}</a></li>
					{/loop}
				</ul>
			</div>
		</div>
	</div>
		<iframe src="{SITE_URL}extend/fragment.php?modules=recommend"  scrolling="no" frameborder="0" height="180" width="630"></iframe>
		{template 'duoshuo_review','extend'}
	</div>
	<div class="fn-right">
		<iframe src="{SITE_URL}extend/fragment.php?modules=pic&psize=6"  scrolling="no" frameborder="0" height="445"></iframe>
		<iframe src="{SITE_URL}extend/fragment.php?modules=news&psize=10"  scrolling="no" frameborder="0" height='303'></iframe>
		<iframe src="{SITE_URL}extend/fragment.php?modules=top&psize=10"  scrolling="no" frameborder="0" height='343'></iframe>
	</div>
	</div>
</div>

<script type="text/javascript">
	seajs.use(['$'], function ($) {
		$("#favorite").click(function(){
			$("#job_favorite").submit();
		});
		$("#mail").click(function(){
			$("#sendmail").submit();
		});
	});
</script>
<!--主体部分 end-->
{template 'footer'}